//
//  MeaningHeaderView.m
//  HotWord
//
//  Created by Ji Qi on 12-6-11.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "MeaningHeaderView.h"

@implementation MeaningHeaderView
@synthesize chineseLabel;
@synthesize englishLabel;
@synthesize word;
@synthesize indexLabel;

-(void)setChineseTrans:(NSString *)cn andEnglish:(NSString *)en{
    
    self.chineseLabel.text = cn;
    self.englishLabel.text = en;
}

-(void)setIndexLabel:(int)now atTotal:(int)total{
    
    self.indexLabel.text = [[NSString alloc] initWithFormat:@"%d/%d", now, total];
    
}


- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)dealloc{
    [chineseLabel release];
    [englishLabel release];
    [word release];
    [indexLabel release];
    [super dealloc];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
